// 做一个混入对象
import store from '@/store'
export default {
  methods: {
    // key就是页面按钮传入的标识(按钮的标识)
    checkPermission(key) {
      // 去用户信息的points里去找key
      return store.state.user.userInfo.roles?.points?.includes(item => item === key)
    }
  }
}
